package com.wudl.govern.service.impl;

import com.wudl.govern.async.AsyncTask;
import com.wudl.govern.domain.DbSource;
import com.wudl.govern.service.MetadataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：wudl
 * @date ：Created in 2022-04-04 0:58
 * @description：
 * @modified By：
 * @version: 1.0
 */

@Service
public class MetadataSourceServiceImpl implements MetadataSourceService {



    @Autowired
    AsyncTask  asyncTask;

    @Override
    public String syncMetadata(DbSource dbSource) {

        asyncTask.doTask(dbSource);
        return "success";
    }
}
